<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Debito extends CI_Controller {



    public function index() {
        
        $this->load->library('session');
        $this->load->model('Mdebito', 'debito');
        $idUsuario = $this->session->userdata['id_usuario'];
        $tpcli = $this->session->userdata['tpcli'];
        $regcli = $this->session->userdata['regcli'];
        
        
        $debitos = $this->debito->verificarDebitos($tpcli,$regcli);
        
        if($debitos != false){
            print_r("<pre>");
            print_r($debitos);
        }else{
            echo "Sem débitos pendentes!";
        }
            
        
        
    }
    
}
